@charset "utf-8";

@mixin size($size...) {
    $size: if(length($size) > 0, $size, auto);
    $width: nth($size, 1);
    $height: nth($size, length($size));

    @if $width != auto {
        $width: if(unitless($width), $width + px, $width);
    }

    @if $height != auto {
        $height: if(unitless($height), $height + px, $height);
    }

    width: $width;
    height: $height;
}

.button {
    @include size(150px, auto);

    padding: 18px 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    background: #00A8E8;
    border-radius: 75px;
    position: relative;
    overflow: hidden;
    border: none;
}

.small-button {
    padding: 5px 20px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
    background: #00A8E8;
    display: block;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.button-disabled {
    opacity: 0.2;
}

.loading {
    display: block;
    width: 23px;
    height: 23px;
    border: solid 2px transparent;
    border-top-color: white;
    border-left-color: white;
    border-radius: 10px;
    margin: auto;
    animation: pace-spinner 400ms linear infinite;
}

@keyframes pace-spinner {
    0% {
        transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 320px) {
    .button {
        width: 120px;
        padding: 14px 0;
    }
}
